package cn.zlj.nmcc.web.controller;

import cn.zlj.nmcc.domain.CourseDoc;
import cn.zlj.nmcc.result.JSONResult;
import cn.zlj.nmcc.service.IEsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


@RestController
@RequestMapping("/course-es")
public class EsController {
    @Autowired
    private IEsService service;


    @PostMapping("/save")
    public JSONResult saveEs(@RequestBody CourseDoc courseDoc) {
            service.save(courseDoc);
        return JSONResult.success();
    }
}
